package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author shuai.zhang  on 2018/9/28
 * @description
 */
@Api("删除/添加角色权限使用")
@Data
public class WtRolePermissionRequest {
    @ApiModelProperty(value = "要操作的角色ID",required = true,example = "1")
    @NotNull
    Long roleId;

    @ApiModelProperty(value = "要删除或添加的权限ID",required = true)
    @Size(min = 1)
    @NotNull
    List<Long> permissionIds;
}
